package y2015.day_08.员工工资;

public abstract class Employee {//员工工资

    //为子类定义通用方法
    public abstract double gongzi();

    public abstract double jiangjin();

    public double zongHe() {
        /*
         * 调用子类方法，执行子类中实现抽象方法
         */
        return gongzi() + jiangjin();

    }

}

